{{define "Title"}}{{.station | html}}{{end}}
{{define "Content"}}

<script type=text/javascript src="/js/enterKey.js"></script>

<div class="container-fluid">
<form class="form-horizontal" action="/passivepim" method="POST">
  <fieldset>
    <legend><b>{{.station | html}}</b> - {{.wono | html}}</legend>
    {{if .error}}<div class="alert alert-error"><b>错误: </b>{{.error | html}}</div>
    {{else }}
      {{if .flash}}<div class="alert alert-success"><b>提示: </b>{{.flash | html}}</div>{{end}}
    {{end}}
    <div class="control-group">
      <label class="control-label">指标&nbsp;</label>
      <div class="control">
        <label class="control-label" for="name" style="font-weight: bold; font-size: 16px; text-align:left; padding-left:10px;">{{.limitval | html}} dBm</label>
      </div>
    </div>
    <div class="control-group">
      <label class="control-label">产品序号&nbsp;</label>
      <div class="control">
        <input type="text" class="input-large" id="ssn" name="ssn" style="font-weight: bold; text-transform:uppercase; background-color: #FFFFD0;" onkeydown="clicka();" maxlength="50"> <b style="color: red">*</b>
      </div>
      <BR/>
    </div>
    {{range .band}}
    {{$curls := .}}
      <div class="control-group">
        <label class="control-label">{{$curls | html}}MHz&nbsp;</label>
        <div class="control">
          <input type="text" class="input-large" id="{{$curls | html}}" name="{{$curls | html}}" style="font-weight: bold; font-size: 16px; background-color:#FFFFD0;" onkeydown="clicka();"> <b style="color: red">*</b>
        </div>
      </div>
    {{end}}
    <div class="form-actions">
      <button type="submit" class="btn btn-primary">保存测试结果</button>
    </div>
  </fieldset>

  <input type=hidden name="wono" value="{{.wono | html}}">
  <input type=hidden name="item" value="{{.item | html}}">
  <input type=hidden name="line" value="{{.line | html}}">
  <input type=hidden name="station" value="{{.station | html}}">
  <input type=hidden name="freqy" value="{{.freqy | html}}">
  <input type=hidden name="limitval" value="{{.limitval | html}}">
</form>
</div>

{{end}}